$OpenBSD: patch-helpers_external_acl_wbinfo_group_ext_wbinfo_group_acl_pl_in,v 1.3 2015/04/03 19:23:27 sthen Exp $
--- helpers/external_acl/wbinfo_group/ext_wbinfo_group_acl.pl.in.orig	Sat Mar 28 10:58:05 2015
+++ helpers/external_acl/wbinfo_group/ext_wbinfo_group_acl.pl.in	Tue Mar 31 10:58:08 2015
@@ -146,14 +146,14 @@ sub check {
 		@tmpuser = split(/\@/, $user);
 		$user = "$tmpuser[1]\\$tmpuser[0]";
 	}
-        $groupSID = `wbinfo -n "$group" | cut -d" " -f1`;
+        $groupSID = `/usr/local/bin/wbinfo -n "$group" | cut -d" " -f1`;
         chop  $groupSID;
-        $groupGID = `wbinfo -Y "$groupSID"`;
+        $groupGID = `/usr/local/bin/wbinfo -Y "$groupSID"`;
         chop $groupGID;
         &debug( "User:  -$user-\nGroup: -$group-\nSID:   -$groupSID-\nGID:   -$groupGID-");
         return 'ERR' if($groupGID eq ""); # Verify if groupGID variable is empty.
-        return 'ERR' if(`wbinfo -r \Q$user\E` eq ""); # Verify if "wbinfo -r" command returns no value.
-        return 'OK' if(`wbinfo -r \Q$user\E` =~ /^$groupGID$/m);
+        return 'ERR' if(`/usr/local/bin/wbinfo -r \Q$user\E` eq ""); # Verify if "wbinfo -r" command returns no value.
+        return 'OK' if(`/usr/local/bin/wbinfo -r \Q$user\E` =~ /^$groupGID$/m);
         return 'ERR';
 }
 
